import markdown

# md转化为html再导入文件
def loadmd(file: str):
    with open(f"{file}", "r", encoding="utf-8") as file:
        markdown_text = file.read()
    text = markdown.markdown(markdown_text)
    return text.replace('style="text-align: center;"', "")

if __name__ == "__main__":
    print(loadmd("../../文档/来源文件/氯化钠注射液工艺信息表mmd.md"))

